import request from '@/utils/request.js'

// const baseUrl = "http://172.20.10.2:9003"
const baseUrl = "http://localhost:9003"

export function enableLogin(data) {
    return request({
        url: baseUrl + '/yiban/enable/login',
        method: 'post',
        data
    })
}

export function getData(id) {
    return request({
        url: baseUrl + '/yiban/data/' + id,
        method: 'get',
    })
}

export function save(data) {
    return request({
        url: baseUrl + '/yiban/save',
        method: 'post',
        data
    })
}

export function closeCheckin(data) {
    return request({
        url: baseUrl + '/yiban/checkin/close',
        method: 'post',
        data
    })
}
